/**
 * Created by wangshuyi on 2016/12/30.
 */

'use strict';
const util = {};

util.formatCondition = function(condition){
    let key;
    delete condition._;
    for(key in condition){
        if(condition[key] == ""){
            delete condition[key];
        }else if(condition[key] == "-"){
            condition[key] = "";
        }
    }
    return condition;
}

module.exports = util;